﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FollowUpPolicy.aspx.cs" MasterPageFile="~/MasterPage.master"
Inherits="carinsurance_offline_FollowUpPolicy" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    <title>
        Follow up policy
        - GG-CRM - กล้วยๆ.com - Teledirect Thailand</title>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitle" runat="Server">
    <h1>
        <asp:Label runat="server" Text="Follow up policy" ID="lblPageName"></asp:Label></h1>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:Label runat="server" Text="<%$Resources:General,LangOption%>" Visible="false"
        ID="lblLangOption" />
<div id="divSearch" runat="server">
        <div style="float:left">
            <asp:Label runat="server" ID="lblRecordCount" CssClass="red" />
        </div>
        <div style="float:right"><asp:Button runat="server" CssClass="greenB ml10" ID="btnRefresh" 
                Text="Refresh" onclick="btnRefresh_Click" /></div>
        <div class="toggle">
            <div class="title opened" id="opened1">
                <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                <h6>
                    <asp:Label runat="server" ID="Label5" Text="<%$Resources:General,ApplicationList%>" />
                </h6>
                <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                <asp:Label ID="lblMessage" runat="server" ForeColor="DarkGreen"></asp:Label>
            </div>
            <asp:GridView ID="grvApplication" runat="server" AllowPaging="false" AutoGenerateColumns="False"
                CssClass="sTable" GridLines="None" Width="100%" EmptyDataText="<%$Resources:General,ErrNodata%>"
                OnRowCommand="grvApplication_RowCommand" DataKeyNames="QuoteRefNo, Email, CarPlate, CECarMoreDetailId">
                <Columns>
                    <asp:BoundField DataField="AppTypeDesc" HeaderText="App Type" SortExpression="AppTypeDesc"
                        ItemStyle-Width="80px" ItemStyle-Font-Bold="true" />
                    <asp:BoundField DataField="QuoteRefNo" HeaderText="<%$Resources:CarInsurance,ReferenceNo%>"
                        SortExpression="QuoteRefNo" ItemStyle-Width="70px" />
                    <asp:BoundField DataField="Name" HeaderText="<%$Resources:CarInsurance,Name%>" SortExpression="Name"
                        ItemStyle-Width="120px" />
                    <asp:BoundField DataField="CarPlate" HeaderText="<%$Resources:Proposal,PlateNumber%>"
                        SortExpression="CarPlate" ItemStyle-Width="60px" />
                    <asp:BoundField DataField="PaymentStatus" HeaderText="<%$Resources:General,PaymentStatus%>"
                        SortExpression="PaymentStatus" ItemStyle-Width="80px" ItemStyle-Font-Bold="true"
                        ItemStyle-ForeColor="red" />
                    <asp:BoundField DataField="ModifiedDate" HeaderText="<%$Resources:General,DateTime%>"
                        SortExpression="ModifiedDate" ItemStyle-Width="50px" DataFormatString="{0:dd/MM/yyyy hh:mm tt}" />
                    <asp:BoundField DataField="DteCount" HeaderText="Late"
                        SortExpression="DteCount" ItemStyle-Width="50px" HtmlEncode="false" />
                    <asp:BoundField DataField="Dinfo1" HeaderText="Email Date"
                        SortExpression="Dinfo1" ItemStyle-Width="50px" DataFormatString="{0:dd/MM/yyyy hh:mm tt}" />
                    <asp:TemplateField HeaderText="Email" ItemStyle-Wrap="false">
                        <ItemTemplate>
                            <asp:CheckBox runat="server" ID="chkEng" Text="EN" />
                            <asp:Button runat="server" ID="btnEdit" Text="Email"
                                CommandName="MyEmail" CommandArgument='<%#Eval("QuoteRefNo")%>' OnClientClick="javascript:return SubmitConfirm();"
                                CssClass="blueB ml10" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Remark" ItemStyle-Wrap="false">
                        <ItemTemplate>
                            <asp:TextBox runat="server" ID="txtRemark" Width="100px" Text='<%# Eval("info12") %>' TextMode="MultiLine" Rows="2"></asp:TextBox>
                            <asp:Button runat="server" ID="btnSave" Text="Save"
                                CommandName="MyRemark" CommandArgument='<%#Eval("QuoteRefNo")%>' OnClientClick="javascript:return SaveConfirm();"
                                CssClass="blueB ml10" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ItemStyle-Wrap="true">
                        <ItemTemplate>
                        <b><a target="_blank" href="ApplicationStatus.aspx?search=<%#Eval("QuoteRefNo")%>"><span style="color: Green">Open</span></a></b>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <SelectedRowStyle BackColor="ActiveBorder" />
            </asp:GridView>
            <div class="clear">
            </div>
        </div>
        <br />
    </div>
    
    <script type="text/javascript">
        function SubmitConfirm() {
            var _retVal = false;
            _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            return _retVal;
        }

        function SaveConfirm() {
            var _retVal = false;
            _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmNext")%>');
            return _retVal;
        }
    </script>
     
</asp:Content>

